<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<h2 class="sub-header">用户列表</h2>

<a href="./homepage?type=add"><button type="button" class="btn btn-primary" >新建用户</button></a>
<div class="table-responsive">
    <table class="table table-striped">
        <thead>
        <tr>
            <th data-options="field:'userId',width:80">编号</th>
            <th data-options="field:'userName',width:100">用户名</th>
            <th data-options="field:'userPassword',width:80,align:'right'">密码</th>
            <th data-options="field:'operation',width:80,align:'right'">操作</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach var="user" items="${userall}">
            <tr>
                <td>${user.userId}</td>
                <td>${user.userName}</td>
                <td>${user.userPassword}</td>
                <td><a href="./homepage?type=modify&tid=${user.userId}">修改</a>  &nbsp;<a href="./del?tid=${user.userId}">删除</a></td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</div>